package com.pureut.system.service;

import com.pureut.system.domain.dto.MaterialAwmateriaDto;
import com.pureut.system.domain.MaterialAccessories;
import com.pureut.system.domain.dto.ProjectRecursionDto;
import com.pureut.system.domain.vo.MaterialAccessoriesVo;
import com.pureut.system.export.MaterialAccessoriesExport;

import java.util.List;

/**
 * @Description
 * @Param
 * @Date
 * @Author hl
 **/
public interface IMaterialAccessoriesService {

    /**
     * 查询辅料信息
     */
    List<MaterialAwmateriaDto> selectAccessoriesList(MaterialAccessoriesVo materialAccessories);

    /**
     * 新增辅料信息
     */
    int insertAccessories(MaterialAccessories materialAccessories) throws Exception;

    /**
     * 删除辅料信息
     */
    int deleteAccessories(String materialId) throws Exception;

    /**
     * 查询单个辅料信息
     */
    MaterialAwmateriaDto selectAccessoriesById(long materialId);

    /**
     * 修改辅料信息
     */
    int updateMaterialAccessoriesEdit(MaterialAccessories materialAccessories) throws Exception;

    /**
     * 冻结/解冻辅料信息
     */
    int updateAccessoriesEditFreeze(MaterialAccessories materialAccessories);

    /**
     * 辅料树结构
     */
    List<ProjectRecursionDto> selectChildrenAccListThe();

    /**
     * 根据物料编号查询详情
     * @param materialCode
     * @return
     */
    MaterialAccessories selectAccessoriesMaterialCode(String materialCode);

    String importMouldData(List<MaterialAccessoriesExport> coCustomer);

    /**
     * 根据物料编码查询详情(委外订单明细列表fegin调用)
     */
    MaterialAwmateriaDto getAccessoriesViewByMaterialCode(String materialCode);
}
